<?php $this->load->view('layout/header');?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <h3 class="page-title">工程部<small>机器列表</small></h3>
            <?php echo breadcrumb(array('工程部', 'macs/grid'=>'机器列表', '编辑推送订单')); ?>
        </div>
    </div>
    <?php echo execute_alert_message() ?>
    <div class="row-fluid">
        <div class="span12">
            <div class="portlet box green">
                <div class="portlet-title">
                    <div class="caption"><i class="icon-plus-sign"></i>编辑推送订单</div>
                    <div class="tools">
                        <a class="collapse" href="javascript:;"></a>
                        <a class="remove" href="javascript:;"></a>
                    </div>
                </div>
                <div class="portlet-body form">
                    <form class="form-horizontal line-form" action="<?php echo base_url('macs/editSendPost') ?>" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="id" value="<?php echo $list->id;?>">
                        <div class="control-group">
                            <label class="control-label"><em>* </em>机器编号</label>
                            <div class="controls">
                                <input type="text" name="mac_id" value="<?php echo $list->mac_id;?>" readonly="readonly" class="m-wrap span4 number required"/> 
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>订单编号</label>
                            <div class="controls">
                                <input type="text" name="order_id" value="<?php echo $list->order_id;?>" class="m-wrap span4 number"/> 
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">机器是否同步</label>
                            <div class="controls">
                                <select name="flag" class="m-wrap span4">
                                    <option value="0" <?php echo $list->flag == 0 ? 'selected' : ''?>>未同步</option>
                                    <option value="1" <?php echo $list->flag == 1 ? 'selected' : ''?>>已同步</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-actions">
                            <button class="btn green" type="submit"><i class="icon-ok"></i> 保存</button>
                            <a href="<?php echo base_url('macs/orderSend/' . $list->mac_id) ?>">
                                <button class="btn" type="button">返回</button>
                            </a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>